//
//  BDMNetworkDef.h
//  iJobs
//
//  Created by Li Xiaopeng on 15/1/22.
//  Copyright (c) 2015年 liyingpeng. All rights reserved.
//
#ifndef iJobs_Header_BDMNetworkDef_h
#define iJobs_Header_BDMNetworkDef_h

#define HTTP_REQUEST_GET          @"GET"
#define HTTP_REQUEST_POST         @"POST"
#define HTTP_REQUEST_PUT          @"PUT"
#define HTTP_REQUEST_DELETE       @"DELETE"
#define HTTP_REQUEST_PATCH        @"PATCH"
#define HTTP_REQUEST_HEAD         @"HEAD"

typedef enum {
    HTTP_REQUEST_TYPE_JSON = 0,         //JSON格式
    HTTP_REQUEST_TYPE_FORM,             //FORM表单
    HTTP_REQUEST_TYPE_XML,              //XML格式
    HTTP_REQUEST_TYPE_DATA_UCLOGIN      //UC登陆二进制流
}TBDM_HTTP_REQUEST_TYPE;

typedef enum {
    HTTP_RETURN_TYPE_JSON = 0,  //JSON格式
    HTTP_RETURN_TYPE_IMAGE,     //图像二进制流
    HTTP_RETURN_TYPE_XML,       //XML格式
    HTTP_RETURN_TYPE_DATA       //二进制流
}TBDM_HTTP_RETURN_TYPE;

typedef NS_ENUM(NSInteger, BDMUploadFileType)
{
    BDMUploadFileType_Data = 0, //文件以NSDATA形式上传(默认)
    BDMUploadFileType_FileURL,  //文件以文件路径形式上传
    BDMUploadFileType_InputStream //文件以inputstream形式上传
};

#endif
